/*
 *  $Id: Death.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *  This file is a part of Ragima CCG.
 *  (C) 2008 Ragima development group.
 *
 *  Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Creatures {
    public class Death: CreatureCard {
        public Death(): base("001_d_c_death") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            Damage = 7;
            Health = 10;
            AddManaCost(ElementType.Darkness, 10);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<Affects.Undead>();
            affects.Add<Affects.Vanguard>();
            affects.Add<Affects.FlightBlock>();
            affects.Add(new Affects.OnCreatureSummon(DoImmortal, AffectSummaryType.Local));
        }
        public override void SetAbilities(ICollector<AbilityCard> abilities) {
            abilities.Add<Abilities.DeathHour>();
        }

        private static void DoImmortal(Creature creature) {
            creature.AddAffect(new TimeAffect(4, new Affects.Immortal()));
        }
    }
}
